package com.micro.ai.template.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.micro.ai.template.entity.TemplateTagRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TemplateTagRelationMapper extends BaseMapper<TemplateTagRelation> {

    @Select("SELECT tag_id FROM template_tag_relations WHERE template_id = #{templateId}")
    List<String> selectTagIdsByTemplateId(@Param("templateId") String templateId);
}

